package com.lxw.study.behavioral.visitor;

public class DeleteFileVisitor implements Visitor{
    @Override
    public void visit(FileElement fileElement) {
        System.out.println(fileElement.getName()+"删除成功");
    }

    @Override
    public void visit(FolderElement folderElement) {
        System.out.println(folderElement.getName()+"删除成功");
    }
}
